<template>
	<view>
		<u-row customStyle="padding: 20rpx;color: #666;font-size: 25rpx;border-bottom: 1px solid #f7f8fa"
			v-for="item in infoList" :key="item.key">
			<u-col span="3">
				{{item.name}}
			</u-col>
			<u-col span="9">
				<text style="color: #333;">
					{{info[item.key] || '--'}}
				</text>
			</u-col>
		</u-row>
	</view>
</template>

<script>
	export default {
		props: {
			infoList: {
				type: Array,
				default: () => {
					return [{
							name: '借用人',
							key: 'realName'
						},
						{
							name: '联系方式',
							key: 'mobile'
						},
						{
							name: '借用日期',
							key: 'date'
						},
					]
				}
			},
			info: {
				type: Object,
				default: () => {
					return {}
				}
			}
		},
		data() {
			return {}
		},
		methods: {}
	}
</script>

<style lang="scss" scoped>
</style>